/**
 *
 */
import java.io.*;
import java.util.*;
public class file{
    public static void main(String[] args) throws IOException{
        char ch;
        while ((ch = (char) System.in.read()) != ' '){
            System.in.skip(2);
            log wl = new log(ch);
            System.out.println("我们将记录您的输入："+wl.write());
        }
    }
}

/**
 * 记录日志
 */
class log{
    String now;
    Calendar date;
    String content;
    log(char con){
        content = String.valueOf(con);
        date = Calendar.getInstance();
        now = date.get(date.YEAR)+"-"+(date.get(date.MONTH)+1)+"-"+date.get(date.DATE)+" "+date.get(date.HOUR_OF_DAY)+":"+date.get(date.MINUTE)+":"+date.get(date.SECOND);
    }
    public String write(){
        content = now+" "+content;
        // 写入日志文件
//        FileReader in = new FileReader("log.txt");
//        BufferedReader bin = new BufferedReader(in);
        FileWriter out = new FileWriter("log.txt",true);
        out.write(content+"\n");
        out.close();
        return content;
    }
}